package com.app.config;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jmx.export.MBeanExporter;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Campus com.app.config
 *
 * @author Lichaojie
 * @version 2018/4/25 12:22
 */
@Configuration
@EnableAutoConfiguration
public class SpringConfig {

	@Bean(name = "mBeanExporter")
	public MBeanExporter mBeanExporter(){
		MBeanExporter mBeanExporter = new MBeanExporter();
		mBeanExporter.setAutodetect(false);
		return mBeanExporter;
	}
}
